package top.hzy520.user.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import top.hzy520.user.dao.UserMapper;
import top.hzy520.user.entity.User;
import top.hzy520.user.service.UserService;

/**
 * @Author: HouZeYu
 * @Description:
 * @Date: Created in 13:30 2018/8/15
 */
@Controller
@RequestMapping("/user")
public class UserController {
    @Autowired
    @Qualifier("userServiceImpl")
    private UserService userService;
    @RequestMapping("/index")
    public String a(){
      User user= userService.findUserById(1L);
        return "user";
    }
}
